import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';

export class PageParamDto {
  @ApiProperty({
    description: '当前页',
    default: 1,
  })
  current: number;

  @ApiProperty({
    description: '每页数',
    default: 10,
  })
  size: number;

  @ApiProperty({
    description: '首页第一条数据',
    default: 0,
  })
  lastId: number;

  @ApiProperty({
    description: '动态类型',
    default: 0,
  })
  type: number;
}
